package cn.yunyichina.reservation.controller;

import cn.yunyichina.reservation.constant.HttpResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Lullaby on 2016/8/19.
 */
@RestController
public class RootController {

    @RequestMapping("/")
    public HttpResponse root() {
        HttpResponse response = new HttpResponse();
        response.success("Hello, world!");
        return response;
    }

}
